package d0317;

public class DaemonThreadTest {
    public static void main(String[] args) {
        DemonThread daemonThread=new DemonThread();
        daemonThread.setDaemon(true);
        daemonThread.start();
    }
}


class DemonThread extends Thread{
    @Override
    public void run(){
        while(true){
            System.out.println("当前线程执行中");
        }
    }
}